-- GENERATED SPELL FOR [Prophet of Sseratus] --


function spell0_28068(pUnit, Event) --@Powerful Bite,n/a--
pUnit:FullCastSpellOnTarget(48287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28068', 5287, 1)
end

function spell1_28068(pUnit, Event) --@Vigor of Sseratus,Self--
pUnit:FullCastSpellOnTarget(54483,pUnit)
pUnit:RegisterEvent('Sorts_28068', 602, 1)
end

function Sorts_28068(pUnit, Event)
local choix_sorts_28068 = math.random(0, 1)
if choix_sorts_28068 == 0 then
pUnit:RegisterEvent('spell0_28068', 1, 1)
end
if choix_sorts_28068 == 1 then
pUnit:RegisterEvent('spell1_28068', 1, 1)
end
end

function mob28068_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28068', math.random(1500, 3000), 1)
end

function mob28068_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28068_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28068_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28068, 1, 'mob28068_Action')
RegisterUnitEvent(28068, 2, 'mob28068_Leave')
RegisterUnitEvent(28068, 3, 'mob28068_Kill')
RegisterUnitEvent(28068, 4, 'mob28068_Die')
